package com.demo.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 秒杀后的商品信息汇总
 *
 * @author FCG
 */
public class GoodsSaledFeedBack implements Serializable {
    private static final long serialVersionUID = -2413839173661600647L;
    /**
     * 秒杀后的商品list
     */
    private List<Goods> goodsList;
    /**
     * 耗时
     */
    private long timespan;

    public GoodsSaledFeedBack() {

    }

    public GoodsSaledFeedBack(List<Goods> goodsList, long timespan) {
        this.goodsList = goodsList;
        this.timespan = timespan;
    }

    public List<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList) {
        this.goodsList = goodsList;
    }

    public long getTimespan() {
        return timespan;
    }

    public void setTimespan(long timespan) {
        this.timespan = timespan;
    }

    @Override
    public String toString() {
        return "GoodsSaledFeedBack{" +
                "goodsList=" + goodsList +
                ", timespan=" + timespan +
                '}';
    }
}
